﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserControl_KienThucVeMat_DanhSach : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!Page.IsPostBack)
            {
                KienThucVeMatDA kda = new KienThucVeMatDA();
                this.CollectionPager1.DataSource = kda.getAll().DefaultView;
                this.CollectionPager1.BindToControl = this.DataList1;
                this.DataList1.DataSource = this.CollectionPager1.DataSourcePaged;
                this.DataList1.DataBind();
            }
        }
        catch (Exception)
        {
            
            throw;
        }
    }
}